Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(test): move from cypress to playwright #64

Merged
merged 4 commits into from
Oct 26, 2023
Merged

Conversation

roedoejet
Copy link
Owner

I think I like playwright more than Cypress. On first glance it seems easier to configure and it's nice that we can use it for both our TypeScript and Python projects. I don't really understand how we're supposed to integrate the coverage checking into the tests (despite reading most of this awful, long issue), but it does appear to work, so that seems to be an improvement over cypress.

@roedoejet roedoejet force-pushed the dev.playwright branch 6 times, most recently from 27933eb to 2737b65 Compare October 25, 2023 21:34
@codecov
Copy link

codecov bot commented Oct 25, 2023

Welcome to Codecov 🎉

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered ☂️

Copy link
Collaborator

@joanise joanise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, except it needs documentation on how to run the tests. I've written a draft for it, see the PR I'll submit shortly.

- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx npm run-script e2e
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npx should not be needed here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, and I finally read the manual: npm run is an alias for npm run-script, as are npm rum and npm urn. LOL. I guess they try to cover what people might type. run is certainly
a convenient alias, but it's kinda silly to let actual typos works...

@@ -1,3 +1,2 @@
package-lock.json
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just removed this line and force pushed a change to undo the indent toggle on package-lock.json. See Slack for details. Having prettier format package-lock.json too should stop this indent toggle.

@roedoejet roedoejet merged commit d869ee7 into main Oct 26, 2023
2 checks passed
@roedoejet roedoejet deleted the dev.playwright branch October 26, 2023 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants